﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewCart.ascx.cs" Inherits="Micronet.OpenWeb.Com.ControlLib.ViewCart" %>
<style type="text/css">
    .style1
    {
        width: 200px;
    }
    .style3
    {
    }
    .style4
    {}
</style>
<owc:OwGrid runat="server" ID="ViewCartGrid" AllowPaging="True" AllowSorting="True"
    CellSpacing="0" GridLines="None" OwEnableMessageDisplay="True" OwMessageDisplayType="InPlace"
    AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" OnDeleteCommand="ViewCartGrid_DeleteCommand"
    ShowFooter="True" Skin="Office2007" Style="margin-top: 0px">
    <MasterTableView DataKeyNames="ShopProductID" AutoGenerateColumns="False">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <owct:GridBoundColumn DataField="ShopProductID" DataType="System.Int64" FilterControlAltText="Filter ShopProductID column"
                HeaderText="Mã sản phẩm" UniqueName="ShopProductID">
            </owct:GridBoundColumn>
            <owct:GridTemplateColumn FilterControlAltText="Filter ProductName column" HeaderText="Tên sản phẩm"
                UniqueName="ProductName">
                <ItemTemplate>
                    <asp:HyperLink ID="ProductNameHyperLink" runat="server" Text='<%# Eval("ProductName") %>'></asp:HyperLink>
                    <%--NavigateUrl='<%# Eval("ShopProductID", "ProductDetail.aspx?ShopProductID={0}") %>'--%>
                </ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridBoundColumn DataField="CurrentPrice" FilterControlAltText="Filter CurrentPrice column"
                HeaderText="Gía sản phẩm" UniqueName="CurrentPrice" DataFormatString="{0}">
            </owct:GridBoundColumn>
            <owct:GridTemplateColumn FilterControlAltText="Filter Quantity column" HeaderText="Số lượng"
                UniqueName="Quantity" FooterText="Tổng:">
                <ItemTemplate>
                    <owc:OwTextBox runat="server" ID="QuantityTextBox" Text='<%# Eval("Quantity") %>'
                        OnTextChanged="QuantityTextBox_TextChanged" />
                    <asp:CompareValidator ID="QuantityCompareValidator" runat="server" ControlToValidate="QuantityTextBox"
                        ErrorMessage="Vui lòng nhập số lượng" ForeColor="red" Operator="GreaterThan"
                        Type="Double" ValueToCompare="0"></asp:CompareValidator>
                </ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridBoundColumn DataField="Amount" FilterControlAltText="Filter Amount column"
                HeaderText="Thành tiền" DataFormatString="${0}" FooterText="$ 0.00" UniqueName="Amount">
            </owct:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
        <WebServiceSettings>
            <ODataSettings InitialContainerName="">
            </ODataSettings>
        </WebServiceSettings>
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        <WebServiceSettings>
            <ODataSettings InitialContainerName="">
            </ODataSettings>
        </WebServiceSettings>
    </HeaderContextMenu>
</owc:OwGrid>
<asp:ImageButton ID="UpdateImageButton" runat="server" ImageUrl="~/App_Themes/OpenWeb/OwImages/vi-VN/cart_capnhatgiohang.gif"
    OnClick="UpdateImageButton_Click" />
<asp:ImageButton ID="PaymentImageButton" runat="server" ImageUrl="~/App_Themes/OpenWeb/OwImages/vi-VN/cart_dathang.gif"
    OnClick="PaymentImageButton_Click" />
<br />
<asp:Label ID="ErUpdate" runat="server" ForeColor="Red" Visible="False">!Bạn phải click vào cập nhật giỏ hàng</asp:Label>
<div id="Notify" runat="server">
    Bạn nên
    <asp:LinkButton ID="LoginLinkButton" runat="server" OnClick="LoginLinkButton_Click"> đăng nhập </asp:LinkButton>
    để sử dụng đầy đủ tính năng (<asp:LinkButton ID="SignUpLinkButton" runat="server"
        OnClick="SignUpLinkButton_Click"> đăng kí </asp:LinkButton>
    nếu chưa có tài khoản) hoặc
    <asp:LinkButton ID="GoOnLinkButton" runat="server" OnClick="GoOnLinkButton_Click"> tiếp tục </asp:LinkButton>thanh
    toán</div>
<asp:Login ID="Login1" runat="server" Visible="False" CreateUserUrl="~/Admin/Views/Site/CreateUserLogin.aspx"
    DestinationPageUrl="~/Admin/Views/Site/ViewCart.aspx?logined=true">
</asp:Login>
<div id="InformationLogin" runat="server">
    Xin chào:
    <asp:LoginName ID="ViewCartLoginName" runat="server" />
    <br />
    <asp:LoginStatus ID="ViewCartLoginStatus" runat="server" OnLoggedOut="ViewCartLoginStatus_LoggedOut" />
</div>
<div id="InformationCustomer" runat="server">
    <table style="width: 100%;">
        <tr>
            <td colspan="2">
                A - Thông tin người đặt hàng
            </td>
            <td colspan="2">
                B - Thông tin người nhận hàng
            </td>
        </tr>
        <tr>
            <td colspan="2" class="style4">
                &nbsp;
            </td>
            <td colspan="2" class="style4" rowspan="2">
                <asp:CheckBox ID="CopyCustInfoToShipInfoCheckBox" runat="server" 
                    oncheckedchanged="CopyCustInfoToShipInfoCheckBox_CheckedChanged" 
                    Text="Thông tin người nhận trùng với  người đặt hàng" 
                    AutoPostBack="True" />
                <br />
                <asp:CheckBox ID="CopyOldShipInfoToShippInfoCheckBox" runat="server" 
                    oncheckedchanged="CopyOldShipInfoToShippInfoCheckBox_CheckedChanged" 
                    Text="Lấy thông tin đã từng nhập" AutoPostBack="True" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
            <td colspan="2">
                <owc:OwGrid runat="server" ID="AddressShippingInfoGridView" CellSpacing="0" GridLines="None"
                    OwEnableMessageDisplay="True"
                    OwMessageDisplayType="InPlace" Visible="False" 
                    OwMessageDisplayControl="" 
                    onitemcommand="AddressShippingInfoGridView_ItemCommand">
                    <ClientSettings EnablePostBackOnRowClick="true">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" UseClientSelectColumnOnly="True" />
                    </ClientSettings>
                    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ShippingAddressID">
                        <CommandItemSettings ExportToPdfText="Export to PDF" ></CommandItemSettings>
                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                        </ExpandCollapseColumn>
                        <Columns>
                            <owct:GridBoundColumn FilterControlAltText="Filter shippingAddressID column" HeaderText="ShippingAddressID"
                                UniqueName="shippingAddressID" DataField="ShippingAddressID">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn FilterControlAltText="Filter Name column" HeaderText="Name"
                                UniqueName="Name" DataField="Name">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn FilterControlAltText="Filter Address column" HeaderText="Address"
                                UniqueName="Address" DataField="Address">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn DataField="Email" 
                                FilterControlAltText="Filter Email column" HeaderText="Email" 
                                UniqueName="Email">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn FilterControlAltText="Filter Tel column" HeaderText="Tel" UniqueName="Tel"
                                DataField="Tel">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn FilterControlAltText="Filter Fax column" HeaderText="Fax" UniqueName="Fax"
                                DataField="Fax">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn FilterControlAltText="Filter Mobile column" HeaderText="Mobile"
                                UniqueName="Mobile" DataField="Mobile">
                            </owct:GridBoundColumn>
                            <owct:GridBoundColumn FilterControlAltText="Filter Description column" HeaderText="Description"
                                UniqueName="Description" DataField="Description">
                            </owct:GridBoundColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </HeaderContextMenu>
                </owc:OwGrid>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="CustomerIDTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Name") %>' 
                    Width="125px" Visible="False" />
            </td>
            <td class="style1">
                &nbsp;</td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="ShippingAddressIDTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Name") %>' 
                    Width="125px" Visible="False" />
            </td>
        </tr>
        <tr>
            <td class="style3">
                Tên người đặt hàng :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="NameCustTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Name") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="NameCustRequiredFieldValidator" runat="server" ControlToValidate="NameCustTextBox"
                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
            </td>
            <td class="style1">
                Tên người nhận hàng :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="NameShipTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Name") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="NameShipRequiredFieldValidator" runat="server" ControlToValidate="NameShipTextBox"
                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Địa chỉ :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="AddCustTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Address") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="AddCustRequiredFieldValidator" runat="server" ControlToValidate="AddCustTextBox"
                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
            </td>
            <td class="style1">
                Địa chỉ :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="AddShipTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Address") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="AddShipRequiredFieldValidator" runat="server" ControlToValidate="AddShipTextBox"
                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Email :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="EmailCustTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Email") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="EmailCustUserRequiredFieldValidator" runat="server"
                    ControlToValidate="EmailCustTextBox" ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="EmailCustRegularExpressionValidator" runat="server"
                    ErrorMessage="<%$ OwR:EmailIsNotCorrectFormat %>" ControlToValidate="EmailCustTextBox"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </td>
            <td class="style1">
                Email :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="EmailShipTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Email") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="EmailShipUserRequiredFieldValidator" runat="server"
                    ControlToValidate="EmailShipTextBox" ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="EmailShipRegularExpressionValidator" runat="server"
                    ErrorMessage="<%$ OwR:EmailIsNotCorrectFormat %>" ControlToValidate="EmailShipTextBox"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Điện thoại :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="TelCustTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Mobile") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="TelCustRequiredFieldValidator" runat="server" ControlToValidate="TelCustTextBox"
                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
            </td>
            <td class="style1">
                Điện thoại :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="TelShipTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Mobile") %>' Width="125px" />
                <asp:RequiredFieldValidator ID="TelShipRequiredFieldValidator" runat="server" ControlToValidate="TelShipTextBox"
                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                    Text="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Fax :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="FaxCustTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Fax") %>' Width="125px" />
            </td>
            <td class="style1">
                Fax :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="FaxShipTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Fax") %>' Width="125px" />
            </td>
        </tr>
        <tr>
            <td class="style3">
                Di động :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="MobileCustTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Tel") %>' Width="125px" />
            </td>
            <td class="style1">
                Di động :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="MobileShipTextBox" SkinID="OwTextBox" LabelWidth=""
                    OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Tel") %>' Width="125px" />
            </td>
        </tr>
        <tr>
            <td class="style3">
                Ghi chú :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="DescriptionCustTextBox" SkinID="OwTextBox" TextMode="MultiLine"
                    LabelWidth="" OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Description") %>'
                    Width="125px" />
            </td>
            <td class="style1">
                Ghi chú :
            </td>
            <td class="style1">
                <owc:OwTextBox runat="server" ID="DescriptionShipTextBox" SkinID="OwTextBox" TextMode="MultiLine"
                    LabelWidth="" OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("Description") %>'
                    Width="125px" />
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                Chọn phương thức thanh toán:
            </td>
            <td class="style3">
                <owc:OwComboBox runat="server" ID="PaymentMethodComboBox" SkinID="OwComboBox" DataSourceID="PaymentMethodOds"
                    DataTextField="Name" DataValueField="PaymentMethodID" />
                <asp:ObjectDataSource ID="PaymentMethodOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwPaymentMethodsEntity"
                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwPaymentMethodsBLL"
                    UpdateMethod="OwUpdate">
                    <SelectParameters>
                        <asp:Parameter Name="sortClause" Type="String" />
                        <asp:Parameter Name="sortDirection" Type="String" />
                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                        <asp:Parameter DefaultValue="9999" Name="maximumRows" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                Chọn hình thức vận chuyển:
            </td>
            <td class="style3">
                <owc:OwComboBox runat="server" ID="ShippingMethodComboBox" SkinID="OwComboBox" DataSourceID="ShippingMethodOds"
                    DataTextField="Name" DataValueField="ShippingMethodID" />
                <asp:ObjectDataSource ID="ShippingMethodOds" runat="server" 
                    DataObjectTypeName="Micronet.OpenWeb.Entity.OwShippingMethodsEntity" 
                    DeleteMethod="OwDelete" InsertMethod="OwInsert" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="OwGetAll" 
                    TypeName="Micronet.OpenWeb.Com.BLL.OwShippingMethodsBLL" 
                    UpdateMethod="OwUpdate">
                    <SelectParameters>
                        <asp:Parameter Name="sortClause" Type="String" />
                        <asp:Parameter Name="sortDirection" Type="String" />
                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                        <asp:Parameter DefaultValue="9999" Name="maximumRows" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3" colspan="4">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3" colspan="4">
                <owc:OwButton runat="server" ID="FinishPaymentButton" Text="Thanh toán" SkinID="OwButton"
                    OnClick="FinishPaymentButton_Click" />
            </td>
        </tr>
        <tr>
            <td class="style3" colspan="4">
                <asp:Label ID="NotifyLabel" runat="server" Text="NotifyLabel"></asp:Label>
            </td>
        </tr>
    </table>
</div>
                <%--<br />
                <owc:OwGrid runat="server" CellSpacing="0" DataSourceID="SqlDataSource1" 
                    GridLines="None" OwEnableMessageDisplay="True" OwMessageDisplayControl="" 
                    OwMessageDisplayType="InPlace">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID" 
                        DataSourceID="SqlDataSource1">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <owct:GridBoundColumn DataField="CustomerID" DataType="System.Int64" 
            FilterControlAltText="Filter CustomerID column" HeaderText="CustomerID" 
            ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Name" 
            FilterControlAltText="Filter Name column" HeaderText="Name" 
            SortExpression="Name" UniqueName="Name">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Email" 
            FilterControlAltText="Filter Email column" HeaderText="Email" 
            SortExpression="Email" UniqueName="Email">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Tel" FilterControlAltText="Filter Tel column" 
            HeaderText="Tel" SortExpression="Tel" UniqueName="Tel">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Fax" FilterControlAltText="Filter Fax column" 
            HeaderText="Fax" SortExpression="Fax" UniqueName="Fax">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Mobile" 
            FilterControlAltText="Filter Mobile column" HeaderText="Mobile" 
            SortExpression="Mobile" UniqueName="Mobile">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Description" 
            FilterControlAltText="Filter Description column" HeaderText="Description" 
            SortExpression="Description" UniqueName="Description">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Address" 
            FilterControlAltText="Filter Address column" HeaderText="Address" 
            SortExpression="Address" UniqueName="Address">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ContinentID" DataType="System.Int64" 
            FilterControlAltText="Filter ContinentID column" HeaderText="ContinentID" 
            SortExpression="ContinentID" UniqueName="ContinentID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="CountryID" DataType="System.Int64" 
            FilterControlAltText="Filter CountryID column" HeaderText="CountryID" 
            SortExpression="CountryID" UniqueName="CountryID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ProvinceID" DataType="System.Int64" 
            FilterControlAltText="Filter ProvinceID column" HeaderText="ProvinceID" 
            SortExpression="ProvinceID" UniqueName="ProvinceID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="DistrictID" DataType="System.Int64" 
            FilterControlAltText="Filter DistrictID column" HeaderText="DistrictID" 
            SortExpression="DistrictID" UniqueName="DistrictID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="WardID" DataType="System.Int64" 
            FilterControlAltText="Filter WardID column" HeaderText="WardID" 
            SortExpression="WardID" UniqueName="WardID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="UserID" DataType="System.Guid" 
            FilterControlAltText="Filter UserID column" HeaderText="UserID" 
            SortExpression="UserID" UniqueName="UserID">
        </owct:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</FilterMenu>

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</HeaderContextMenu>
                </owc:OwGrid>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:OwConnectionString %>" 
                    SelectCommand="SELECT * FROM [OpenWeb_Customers]"></asp:SqlDataSource>
                <br />
                <owc:OwGrid runat="server" CellSpacing="0" DataSourceID="SqlDataSource2" 
                    GridLines="None" OwEnableMessageDisplay="True" OwMessageDisplayControl="" 
                    OwMessageDisplayType="InPlace">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="SqlDataSource2">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <owct:GridBoundColumn DataField="OrderID" DataType="System.Int64" 
            FilterControlAltText="Filter OrderID column" HeaderText="OrderID" 
            ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="OrderNo" 
            FilterControlAltText="Filter OrderNo column" HeaderText="OrderNo" 
            SortExpression="OrderNo" UniqueName="OrderNo">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Name" 
            FilterControlAltText="Filter Name column" HeaderText="Name" 
            SortExpression="Name" UniqueName="Name">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ShopID" DataType="System.Int64" 
            FilterControlAltText="Filter ShopID column" HeaderText="ShopID" 
            SortExpression="ShopID" UniqueName="ShopID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="CustomerID" DataType="System.Int64" 
            FilterControlAltText="Filter CustomerID column" HeaderText="CustomerID" 
            SortExpression="CustomerID" UniqueName="CustomerID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="DateTimeCreated" DataType="System.DateTime" 
            FilterControlAltText="Filter DateTimeCreated column" 
            HeaderText="DateTimeCreated" SortExpression="DateTimeCreated" 
            UniqueName="DateTimeCreated">
        </owct:GridBoundColumn>
        <owct:GridCheckBoxColumn DataField="IsConfirmed" DataType="System.Boolean" 
            FilterControlAltText="Filter IsConfirmed column" HeaderText="IsConfirmed" 
            SortExpression="IsConfirmed" UniqueName="IsConfirmed">
        </owct:GridCheckBoxColumn>
        <owct:GridBoundColumn DataField="DateTimeComfirmed" DataType="System.DateTime" 
            FilterControlAltText="Filter DateTimeComfirmed column" 
            HeaderText="DateTimeComfirmed" SortExpression="DateTimeComfirmed" 
            UniqueName="DateTimeComfirmed">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="TotalAmount" DataType="System.Double" 
            FilterControlAltText="Filter TotalAmount column" HeaderText="TotalAmount" 
            SortExpression="TotalAmount" UniqueName="TotalAmount">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="PaymentMethodID" DataType="System.Int64" 
            FilterControlAltText="Filter PaymentMethodID column" 
            HeaderText="PaymentMethodID" SortExpression="PaymentMethodID" 
            UniqueName="PaymentMethodID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ShippingAddressID" DataType="System.Int64" 
            FilterControlAltText="Filter ShippingAddressID column" 
            HeaderText="ShippingAddressID" SortExpression="ShippingAddressID" 
            UniqueName="ShippingAddressID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ShippingMethodID" DataType="System.Int64" 
            FilterControlAltText="Filter ShippingMethodID column" 
            HeaderText="ShippingMethodID" SortExpression="ShippingMethodID" 
            UniqueName="ShippingMethodID">
        </owct:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</FilterMenu>

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</HeaderContextMenu>
                </owc:OwGrid>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:OwConnectionString %>" 
                    SelectCommand="SELECT * FROM [OpenWeb_Orders]"></asp:SqlDataSource>
                <br />
                <owc:OwGrid runat="server" CellSpacing="0" DataSourceID="SqlDataSource3" 
                    GridLines="None" OwEnableMessageDisplay="True" OwMessageDisplayControl="" 
                    OwMessageDisplayType="InPlace">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderDetailID" 
                        DataSourceID="SqlDataSource3">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <owct:GridBoundColumn DataField="OrderDetailID" DataType="System.Int64" 
            FilterControlAltText="Filter OrderDetailID column" HeaderText="OrderDetailID" 
            ReadOnly="True" SortExpression="OrderDetailID" UniqueName="OrderDetailID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="OrderID" DataType="System.Int64" 
            FilterControlAltText="Filter OrderID column" HeaderText="OrderID" 
            SortExpression="OrderID" UniqueName="OrderID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ProductID" DataType="System.Int64" 
            FilterControlAltText="Filter ProductID column" HeaderText="ProductID" 
            SortExpression="ProductID" UniqueName="ProductID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ShopProductID" DataType="System.Int64" 
            FilterControlAltText="Filter ShopProductID column" HeaderText="ShopProductID" 
            SortExpression="ShopProductID" UniqueName="ShopProductID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="ProductName" DataType="System.Int64" 
            FilterControlAltText="Filter ProductName column" HeaderText="ProductName" 
            SortExpression="ProductName" UniqueName="ProductName">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="CurrentPrice" DataType="System.Double" 
            FilterControlAltText="Filter CurrentPrice column" HeaderText="CurrentPrice" 
            SortExpression="CurrentPrice" UniqueName="CurrentPrice">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="Quantity" DataType="System.Int32" 
            FilterControlAltText="Filter Quantity column" HeaderText="Quantity" 
            SortExpression="Quantity" UniqueName="Quantity">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="CurrencyID" DataType="System.Int64" 
            FilterControlAltText="Filter CurrencyID column" HeaderText="CurrencyID" 
            SortExpression="CurrencyID" UniqueName="CurrencyID">
        </owct:GridBoundColumn>
        <owct:GridBoundColumn DataField="UnitID" DataType="System.Int64" 
            FilterControlAltText="Filter UnitID column" HeaderText="UnitID" 
            SortExpression="UnitID" UniqueName="UnitID">
        </owct:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</FilterMenu>

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</HeaderContextMenu>
                </owc:OwGrid>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:OwConnectionString %>" 
                    SelectCommand="SELECT * FROM [OpenWeb_OrderDetails]"></asp:SqlDataSource>
                <br />
<%--NavigateUrl='<%# Eval("ShopProductID", "ProductDetail.aspx?ShopProductID={0}") %>'--%><%--NavigateUrl='<%# Eval("ShopProductID", "ProductDetail.aspx?ShopProductID={0}") %>'--%>